/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package cn.yzc.factory_pattern.abstract_factory;

/**
 * <p>Project: springbootDemo - Test</p>
 * <p>Powered by yzc On 2024-03-20 11:13:15</p>
 * <p>描述：<p>
 *
 * @author yzc [youzhicheng0415@163.com]
 * @version 1.0
 * @since 17
 */
public class Test {
    public static void main(String[] args) {
        AmericaFactory factory = new AmericaFactory();
        Coffee coffee = factory.creatCoffee();
        Dessert dessert = factory.creatDessert();
        System.out.println(coffee.getName());
        System.out.println(dessert.getName());

    }
}
